Skip to content

feat(dev): Add agent-owned Garfield loop for Junior development - #1186

Draft
sentry-junior[bot] wants to merge 2 commits into
mainfrom
dcramer/swamp-garfield-mvp
Draft

feat(dev): Add agent-owned Garfield loop for Junior development#1186
sentry-junior[bot] wants to merge 2 commits into
mainfrom
dcramer/swamp-garfield-mvp

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Make Garfield a one-command agent loop for Junior development worktrees.

Problem
The first MVP suspended for manual findings fill/approve/resume. That is the opposite of what we want: tell the agent to run Garfield and have it achieve the result.

What changed

  • node scripts/garfield/run.mjs --goal '...' prepares the slice (bundle, core lane plan, prompts, agent-brief.md)
  • the coding agent owns review → fix → findings write
  • node scripts/garfield/run.mjs --finalize merges, validates, and emits garfield: pass|blocked
  • repo skill at skills/garfield/SKILL.md with native lane cards
  • core profile (default) skips per-policy lanes so the loop stays cheap; --profile full restores them
  • Swamp suspend/approve path remains optional for human-gated runs

Not product runtime. Dev tooling only.

How to use

# agent path (preferred)
node scripts/garfield/run.mjs --goal 'your slice'
# agent reviews lanes, writes findings, fixes, then:
node scripts/garfield/run.mjs --finalize

Or tell Junior/Codex: "run garfield" — it should load skills/garfield/SKILL.md and finish the loop without handing back a checklist.

Verified

  • node --test scripts/garfield/lib.test.mjs (8/8)
  • agent-path e2e: prepare → write none findings → finalize → garfield: pass
  • required checks: file-length, test-architecture

Requested by David Cramer.

--

View Junior Session Sentry

Introduce local-first Garfield development automation so multi-lane
review can reuse a typed slice bundle, deterministic lane plan, and
targeted validation instead of redoing the whole agent loop each time.

Co-Authored-By: David Cramer <david@sentry.io>
@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 2, 2026 3:13am

Request Review

Replace the manual findings gate with prepare/finalize entrypoints and a
repo skill so "run garfield" reviews, fixes, validates, and reports without
human checklist steps. Core profile keeps the default lane set cheap.

Co-Authored-By: David Cramer <david@sentry.io>
@sentry-junior sentry-junior Bot changed the title feat(dev): Add Swamp-backed Garfield MVP loop feat(dev): Add agent-owned Garfield loop for Junior development Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants